/*
* Copyright 2016 Yonyou Auto Information Technology（Shanghai） Co., Ltd. All Rights Reserved.
*
* This software is published under the terms of the YONYOU Software
* License version 1.0, a copy of which has been included with this
* distribution in the LICENSE.txt file.
*
* @Project Name : marketing-wechat-open-api
*
* @File name : DealerApiServiceInterface.java
*
* @Author : LiuJun
*
* @Date : 2016年12月27日
*
----------------------------------------------------------------------------------
*     Date       Who       Version     Comments
* 1. 2016年12月27日    LiuJun    1.0
*
*
*
*
----------------------------------------------------------------------------------
*/

package com.yonyou.gmcc.gateway.wechat.service.interfaces;

import java.util.Map;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 *
 * @author LiuJun 经销商服务API接口
 * @date 2016年12月27日
 */
@FeignClient(name = "service-dealer")
public interface DealerApiServiceInterface {

	/**
	 *
	 * @author LiuJun 获取新闻资讯内容
	 * @date 2016年12月27日
	 * @param naiId
	 * @return
	 * @throws Exception
	 */
	@RequestMapping(value = "/dealer/subscribtion/api/v1/news/content", method = RequestMethod.GET, produces = "application/json;charset=UTF-8")
	@ResponseBody
	public Map<String, Object> getNewsActivityContent(@RequestParam("naiId") Integer naiId);

	/**
	 *
	 * @author LiuJun 获取模板ID
	 * @date 2017年1月12日
	 * @param authorizerAppid
	 * @param templateNum
	 * @return
	 * @throws Exception
	 */
	@RequestMapping(value = "/dealer/templates/api/v1/templateId", method = RequestMethod.GET, produces = "text/plain;charset=UTF-8")
	public String getDealerWoTemplateId(@RequestParam("authorizerAppid") String authorizerAppid,
			@RequestParam("templateNum") String templateNum);

}
